// 基于template/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IGridViewModel } from '@/core/interface/view/model';

function getModel(): IGridViewModel {
	return {
		caption: '角色清单',
		title: '人员被授予的角色',
		capPSLanguageRes: 'DE.LNAME.SYS_ROLE_MEMBER',
		titlePSLanguageRes: '',
		showDataInfoBar: false,
		codeName: 'sys_role_memberPersonGridView',
		uiEngineModel: [
			{
				name: 'newdata',
				triggerType: 'CUSTOM',
				logicType: 'SYSUILOGIC',
				eventNames: '',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: '',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: '',
				entityCodeName: '',
			},
			{
				name: 'opendata',
				triggerType: 'CUSTOM',
				logicType: 'SYSUILOGIC',
				eventNames: '',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: '',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: '',
				entityCodeName: '',
			},
		],
		ctrls: [
			{
				name: 'toolbar',
				codeName: 'PersonGridViewtoolbar',
				controlType: 'TOOLBAR',
			},
			{
				name: 'grid',
				codeName: 'PersonGridView_Grid',
				controlType: 'GRID',
			},
			{
				name: 'searchform',
				codeName: 'PersonGridView_SearchForm',
				controlType: 'SEARCHFORM',
			},
		],
		ctrlParams: {
			Sys_role_membertoolbar: {},
			Sys_role_membergrid: {},
			Sys_role_membersearchform: {},
		},
		cssName: '',
		name: 'sys_role_memberPersonGridView',
		viewType: 'DEGRIDVIEW',
		viewStyle: 'DEFAULT',
		showCaption: true,
		isLoadDefault: true,
		entityCodeName: 'Sys_role_member',
		keyPSAppDEField: 'Id',
		majorPSAppDEField: 'Id',
		enableQuickSearch: true,
		expandSearchForm: false,
		newData: {
			deCodeName: 'Sys_role_member',
			newDataViewName: 'sys_role_memberEditView',
		},
		openData: {
			deCodeName: 'Sys_role_member',
			openDataViewName: 'sys_role_memberEditView',
		},
		toolbarItems: [],
		xDataCtrlName: 'grid',
		quickSearchPlaceholder: ['标识', '成员名称', '成员DN'].join(','),
		useDefaultLayout: true,
		enableRowEdit: false,
		rowActiveMode: 0,
		rowEditDefault: false,
	};
}

export const model = getModel();
